package cn.lzy.demo;

/**
 *
 * @Description
 * @Author lzy
 * @Date 2023/12/15 8:48
 * @Version
 *
 **/
public aspect TxAspect {

    void around():call(void MoneyService.transferMoney()) {
        try {
            System.out.println("开启事务");
            proceed();
            System.out.println("提交事务");
        } catch (Exception e) {
            System.out.println("回滚事务");
        }
    }
}
